<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>

<!DOCTYPE html>
<html lang="zh-CN">
    <head>
        <meta charset="UTF-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <meta name="description" content="">
        <meta name="keys" content="">
        <meta name="author" content="">
        <title>管理员登录</title>
        <base href="http://${pageContext.request.serverName}:${pageContext.request.serverPort}${pageContext.request.contextPath}/">
        <link rel="stylesheet" href="bootstrap/css/bootstrap.min.css">
        <link rel="stylesheet" href="css/font-awesome.min.css">
        <link rel="stylesheet" href="css/login.css">
        <script src="jquery/jquery-2.1.1.min.js"></script>
        <script src="bootstrap/js/bootstrap.min.js"></script>
        <script src="layer/layer.js"></script>
    </head>

    <script type="text/javascript">
        // 提示security抛出的异常
        function showExceptionMessage() {
            let exceptionMessage = "${SPRING_SECURITY_LAST_EXCEPTION.message}";
            let hasException = ${empty SPRING_SECURITY_LAST_EXCEPTION.message};
            if (!hasException) {
                layer.alert(exceptionMessage);
            }
        }

        showExceptionMessage()
    </script>

    <body>
        <nav class="navbar navbar-inverse navbar-fixed-top" role="navigation">
            <div class="container">
                <div class="navbar-header">
                    <div><a class="navbar-brand" href="javascript:" style="font-size:32px;">众筹平台 - 控制面板</a></div>
                </div>
            </div>
        </nav>

        <div class="container">

            <form action="admin/security/login.html" method="post" class="form-signin" role="form">
                <h2 class="form-signin-heading"><i class="glyphicon glyphicon-log-in"></i> 管理员登录</h2>
                <!-- 预留的提示信息 -->
                <!-- <p class="help-block label label-warning"></p> -->
                <div class="form-group has-success has-feedback">
                    <input type="text" name="loginAccount" class="form-control" placeholder="请输入登录账号"
                           autofocus>
                    <span class="glyphicon glyphicon-user form-control-feedback"></span>
                </div>
                <div class="form-group has-success has-feedback">
                    <input type="password" name="userPwd" class="form-control" placeholder="请输入登录密码"
                           style="margin-top:10px;">
                    <span class="glyphicon glyphicon-lock form-control-feedback"></span>
                </div>
                <button id="submitBtn" type="submit" class="btn btn-lg btn-success btn-block">登录</button>
            </form>
        </div>

    </body>
</html>